package com.platform.wechat.service;


import com.platform.wechat.common.JsonBean;
import org.apache.ibatis.annotations.Param;

/**
 * @author YP
 * @company ~~
 * @create 2021-07-28 11:49
 */
public interface HospitalService {

    /**
     * 根据id查询医院信息（可变）
     * @param id
     * @return
     */
    JsonBean selectHospitalMsg(Integer id);

    /**
     * 查询所有医院信息
     * @return
     */
    JsonBean selectAllHospital(String hospitalAddress);
    
    /** 
    * @Description: 模糊查询医院
    * @Param: [hospitalName] 
    * @return: com.platform.wechat.common.JsonBean 
    * @Author: MaYongQiang
    * @Date: 2021/7/28
    * @time: 14:34
    */
    JsonBean vagueQuery(String hospitalName);

    /** 
    * @Description: 根据科室查询医院 
    * @Param: [officesName] 
    * @return: com.platform.wechat.common.JsonBean 
    * @Author: guopeixin
    * @Date: 2021/7/31 10:32
    */
    JsonBean selectHospitalByofficesName(String officesName,String hospitalAddress, String hospitalName);

    /**
    * @Description:  根据医院ID,科室ID查询医院信息及科室
    * @Param: [hospitalId, chiefofficesId]
    * @return: com.platform.wechat.common.JsonBean
    * @Author: guopeixin
    * @Date: 2021/7/31 16:15
    */
    JsonBean selectOfficesNameByHospitalId(Integer hospitalId, Integer chiefofficesId, Integer officesId, String hospitalAddress, String officesName, String hospitalName);

    /**
    * @Description:  根据医院ID,科室名称查询一条信息
     * @Param: [hospitalId, officesName]
    * @return: com.platform.wechat.common.JsonBean
    * @Author: guopeixin
    * @Date: 2021/8/1 16:25
    */
    JsonBean selectOne(Integer hospitalId, String officesName, Integer officesId, String hospitalAddress, String hospitalName);

    /** 
    * @Date: 2021/8/2 23:28
    * @Author: guopeixin
    * @Description:  根据医院ID,科室ID查询一条信息
    */
    JsonBean selectOneByONO(Integer hospitalId, Integer officesId);

    JsonBean insertHospitalDistance(Double longitude,Double latitude);

    JsonBean selectAllSortByDistance();

}
